<?php get_header(); ?>
						<div class="content">
							<?php $slideshow = new WP_Query('post_type=slideshow&posts_per_page=5'); ?>
							<?php if ( $slideshow->have_posts() ) : ?>
							<div id="slideshow" class="slideshow">
							  	<ul class="ui-tabs-nav">
							        <?php $i = 0; while ( $slideshow->have_posts() ) : $slideshow->the_post(); $i++;  ?>
									<li class="ui-tabs-nav-item ui-tabs-selected" id="nav-fragment-<?php echo $i; ?>">
						        			<div class="inside">
						        					<a href="#fragment-<?php echo $i; ?>">
						        					</a>
						        					<a href="<?php echo get('informacoes_link'); ?>" class="inside-link">
									        			<strong><?php new_title(18); ?></strong>
									        			<span><?php echo get('informacoes_descricao'); ?></span>
								        			</a>
						        			</div>
							        </li>
							        <?php endwhile; ?>
							        <?php $slideshow->rewind_posts(); ?>									
								</ul>

								<?php $i = 0; while ( $slideshow->have_posts() ) : $slideshow->the_post(); $i++;  ?>
								<div id="fragment-<?php echo $i; ?>" class="ui-tabs-panel" style="">
									<a href="<?php echo get('informacoes_link'); ?>"><?php the_post_thumbnail('slideshow', array('title' => get_the_title())); ?></a>
								</div>
							    <?php endwhile; ?>

							</div><!-- /slideshow-->
							<?php endif; ?>
							
							<div class="noticias">
								<span class="tit-content"><a title="Notícias" href="<?php bloginfo('url'); ?>/noticias/" class="link">Notícias</a></span>
								<!--<a title="RSS" href="<?php bloginfo('rss2_url'); ?>" class="rss">RSS</a>-->
								<span class="clear"></span>
								<?php $noticias = new WP_Query('posts_per_page=3'); ?>
								<?php if ( $noticias->have_posts() ) : ?>
								<ul class="lista-noticias">
										<?php while ( $noticias->have_posts() ) : $noticias->the_post();
							
										if (has_post_thumbnail()) :
									?>
										<li>
											<a class="resultado-de-busca-link" title="<?php the_title(); ?>" href="<?php the_permalink(); ?>">
												<?php the_post_thumbnail('thumbnail', array('title' => get_the_title())); ?>
											</a>
									<?php else : ?>
										<li class="no-image">
									<?php endif; ?>
											<a class="noticias-link" title="<?php the_title(); ?>" href="<?php the_permalink(); ?>">
												<div class="wrapper-noticia">
													<span class="data-noticia"><?php the_time('d.m.Y'); ?></span>
													<span class="tit-noticia"><?php new_title(58); ?></span>
													<div class="desc-noticia">
														<?php new_excerpt(180); ?>														
													</div>
												</div>
											</a>
											<span class="clear"></span>
										</li>
										<span class="clear"></span>
									<?php endwhile; ?>
								</ul>
								<?php endif; ?>
								<span class="clear"></span>
							</div><!-- /Noticias -->
							<span class="clear"></span>
							
							<?php $artigos = new WP_Query('post_type=artigos&posts_per_page=3'); ?>
							<?php if ( $artigos->have_posts() ) : ?>
							<div class="artigos-publicacoes">
								<span class="tit-content"><a title="Artigos e Publicações" href="<?php bloginfo('url'); ?>/artigos/" class="link">Artigos e Publicações</a></span>
								<span class="clear"></span>
								<ul class="lista-artigos">
									<?php while ( $artigos->have_posts() ) : $artigos->the_post();

										$link = get('informacoes_link_externo');
										$pdf = get('informacoes_arquivo_pdf');
										$target='target="_blank"';

										$class = 'download';
										if ($link == '' && $pdf != '') : 
											$link = $pdf;
											$class = 'download';
										elseif ($link == '' && $pdf == '') : 
											$link = get_permalink(get_the_ID());
											$target = "";
										endif;
							
									if (has_post_thumbnail()) :
								?>
									<li>
										<a <?php echo $target; ?> class="noticias-link <?php echo $class; ?>" title="<?php the_title(); ?>" href="<?php echo $link; ?>">
											<?php the_post_thumbnail('thumbnail-mini', array('title' => get_the_title())); ?>
										</a>
								<?php else : ?>
									<li class="no-image">
								<?php endif; ?>
										<a <?php echo $target; ?> class="noticias-link <?php echo $class; ?>" title="<?php the_title(); ?>" href="<?php echo $link; ?>">
											<div class="wrapper-artigos">
												<span class="data-artigos"><?php the_time('d.m.Y'); ?></span>
												<span class="tit-artigos"><?php new_title(58); ?></span>
												<span class="desc-artigos"><?php new_excerpt(180); ?></span>
											</div>
										</a>
										<span class="clear"></span>
									</li>
									<span class="clear"></span>
									<?php endwhile; ?>
								</ul>
								<span class="clear"></span>
							</div><!-- /artigo-publicacoes -->
							<span class="clear"></span>
							<?php endif; ?>
							
							<span class="tit-content"><a title="Veja mais Galerias de Fotos" href="<?php bloginfo('url'); ?>/multimidia/fotos" class="link">Galeria de Fotos</a></span>
							<span class="clear"></span>
							<?php $shortcode = '[nggallery source="recent" order_by="alttext" template="home"]'; $gal = apply_filters('the_content', $shortcode);
							echo $gal; ?>
						</div><!-- /Content -->

						<?php get_template_part('sidebar','home') ; ?>
<?php get_footer(); ?>
